{% extends "list_edit_base.html" %}
{% load bootstrap3 %}
{% block title %} 任务列表 {% endblock %}
{% block table_body %}

<table class="table small">
    <thead>
    <tr>
        <th>操作</th>
        <th>任务名称</th>
        <th>指定任务</th>
        <th>周期</th>
        <th>定期</th>
        <th>备份插件</th>
        <th>失效日期</th>
        <th>激活</th>
        <th>描述</th>
    </tr>
    </thead>
    <tbody>
    {% for item in item_list %}
    <tr id="item_{{ item.id }}">

        <td>
            <a href={% url "djcelery_periodictask_del" item.id %} onclick="return confirm('确认删除？')">
            <span class="glyphicon glyphicon-remove" aria-hidden="true"></span>
            </a>
        </td>

        <td id="item_{{item.id}}_name"><a href="{% url editurl item.id %}">{{ item.name }}</a></td>
        <td id="item_{{item.id}}_task">{{ item.task }}</td>
        <td id="item_{{item.id}}_interval">{{ item.interval }}</td>
        <td id="item_{{item.id}}_crontab">{{ item.crontab }}</td>
        <td id="item_{{item.id}}_args">{{ item.args }}</td>

        <td id="item_{{item.id}}_expires">{{ item.expires }}</td>
        <td id="item_{{item.id}}_enabled">{{ item.enabled }}</td>

        <td id="item_{{item.id}}_description">{{ item.description }}</td>
    </tr>
    {% endfor %}
    </tbody>
</table>

{% endblock %}
{%block script%}{%endblock%}
